<?php 
/**
 * 	array_flip() 把数组的值和索引键名置换
 *
 * 	array_reverse() 返回一个顺序相反的数组
 * 
 */
	$lamp = array('os' => "windows10", "WebServer" => "Apache", "Databases" => "MySQL", "Dd" => "MySQL");

	print_r($lamp);
	echo "<hr>";

	$arr = array_flip( $lamp );
	print_r($arr);
	echo "<hr>";

	$reverse = array_reverse($lamp);
	print_r($reverse);
	echo "<hr>";

	$arrayName = array("name", "sex", "age", "email", "www");
	print_r( array_reverse($arrayName, true) );
 ?>